<?php

$oper = $_POST['oper'];

if (!isset($oper))
{
    die("Unknown command");
}

$admin = true;
require_once('auth_req.inc.php');

switch ($oper)
{

    case 'del':
            $sth = $dbh->prepare('delete from network_map where c_id=?');
            $sth->execute(array($_POST['id']));
        break;
}

?>